package com.mrd.gtimpframe.service;

import com.mrd.gtimpframe.entity.Attachment;
import com.mrd.gtimpframe.entity.CompanyAttachment;
import org.springframework.web.multipart.MultipartFile;

public interface CompanyAttachmentService {
    int deleteByPrimaryKey(String id);

    int insert(CompanyAttachment record);

    int insertSelective(CompanyAttachment record);

    CompanyAttachment selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(CompanyAttachment record);

    int updateByPrimaryKey(CompanyAttachment record);

    /**
     * 文件上传保存方法，注意，本文件不做数据库保存操作
     *
     * @param type 文件保存的上级路径（file.path下的）
     */
    Attachment saveUploadFile(MultipartFile uploadFile, String type);
}